#ifndef ELECTRIC_SET_H
#define ELECTRIC_SET_H

#include <global_variable.h>
#include"mycombobox.h"
#include <QMainWindow>
#include <QWidget>

class Electric_set : public QMainWindow
{
    Q_OBJECT
public:
    explicit Electric_set(QWidget *parent = 0);
    bool eventFilter(QObject *watched, QEvent *event);
    void ui_Label_Init();
    void ui_Btn_Init();
    void connect_Init();
    void time_Init();
    int pos=0;
    int totalBtn =8;
    QTimer  *timer;
    QTimer  *timer2;
    QString str_show;
    bool show_flag=0;
    bool change_flag=0;  //1代表修改数据模式  0代表按键控制模式
    int elec_flag=0;//只是代表电磁阀的种类，用来切换电磁阀
    QPushButton *theBtn[8];
    QLabel *theLabel[10];
    void  Recive_Gas_SelData(QString ) ; //第三行的数据
    QList <QPushButton * >btnlist_ui;
    int flag=2;
    QString Elec_Gas[6]={"电磁阀 A","电磁阀 B","电磁阀 C","电磁阀 D","电磁阀 E","电磁阀 F"};//存储3种气体分别对应的电磁阀名字

signals:

public slots:
};

#endif // ELECTRIC_SET_H
